package org.dromara.bclt.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.bclt.domain.Pushe;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 手环-消息推送视图对象 bclt_pushe
 *
 * @author YHGao
 * @date 2024-10-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Pushe.class)
public class PusheVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 消息推送id
     */
    @ExcelProperty(value = "消息推送id")
    private Long id;

    /**
     * 设备id
     */
    @ExcelProperty(value = "设备id")
    private Long deviceId;

    /**
     * 消息推送类型（0:文本类型）
     */
    @ExcelProperty(value = "消息推送类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "bclt_pushe_type")
    private String pusheType;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 推送时间
     */
    @ExcelProperty(value = "推送时间")
    private Date pusheTime;

    /**
     * 消息状态（0:未读/1:已读）
     */
    @ExcelProperty(value = "消息状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "bclt_message_status")
    private String messageStatus;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;


}
